package corp.edu.amadeus.core.business.locator;

import corp.edu.amadeus.core.business.service.ifc.IFileService;
import corp.edu.amadeus.core.business.service.ifc.IContentService;
import corp.edu.amadeus.core.business.service.ifc.ITextService;
import corp.edu.amadeus.core.business.service.ifc.IMultimediaStorageService;
import corp.edu.amadeus.core.bluetooth.service.ifc.IBluetoothService;
import corp.edu.amadeus.core.spring.BeanLocator;

public abstract class ServiceLocator {

	private static String CONTENT_SERVICE_ID = "contentAppService";
	private static String FILE_SERVICE_ID = "fileAppService";
	private static String TEXT_SERVICE_ID = "textAppService";
	private static String MULTIMEDIA_STORAGE_SERVICE_ID = "multimediaStorageAppService";
	private static String BLUETOOTH_SERVICE_ID = "bluetoothAppService";


	public static IContentService getContentService() {
		return (IContentService)BeanLocator.getBean(CONTENT_SERVICE_ID);
	}

	public static IFileService getFileService() {
		return (IFileService)BeanLocator.getBean(FILE_SERVICE_ID);
	}

	public static ITextService getTextService() {
		return (ITextService)BeanLocator.getBean(TEXT_SERVICE_ID);
	}

	public static IMultimediaStorageService getMultimediaStorageService() {
		return (IMultimediaStorageService)BeanLocator.getBean(MULTIMEDIA_STORAGE_SERVICE_ID);
	}

	public static IBluetoothService getBluetoothService() {
		return (IBluetoothService)BeanLocator.getBean(BLUETOOTH_SERVICE_ID);
	}

}